package cn.wolfcode.luowowo.search.service;

import cn.wolfcode.luowowo.search.query.IndexSearchQuery;
import cn.wolfcode.luowowo.search.template.TravelTemplate;
import cn.wolfcode.luowowo.search.template.UserInfoTemplate;
import org.springframework.data.elasticsearch.core.aggregation.AggregatedPage;

import java.util.List;

/**
 * @author 猫教授
 * @date 2019/8/18 17:17
 */
public interface ITravelSearchService {
    /**
     * 保存或者修改
     * @param tt
     */
    void save(TravelTemplate tt);

    /**
     * 通过地点名字查询游记
     * @param keyword
     * @return
     */
    List<TravelTemplate> findByDestName(String keyword);

    AggregatedPage<TravelTemplate> selectByKeyword(IndexSearchQuery qo,String...fieldName);
}
